<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <title>IM</title>
    <script src="/static/js/app/workspace/conversation/common/jquery.min.js"></script>
    <script src="/static/js/app/workspace/conversation/common/flexible.js"></script>
    <!--SDK 文档：http://www.rongcloud.cn/docs/web.html#sdk-->
    <script src="//cdn.ronghub.com/RongIMLib-2.3.0.js"></script>
    <script src="//cdn.ronghub.com/RongEmoji-2.2.6.min.js"></script>
    <script src="/static/js/app/workspace/conversation/libs/utils.js"></script>
    <script src="/static/js/app/workspace/conversation/libs/qiniu-upload.js"></script>
    <script src="/static/js/app/workspace/conversation/emoji.js"></script>
    <script src="/static/js/app/workspace/conversation/template.js"></script>
    <script src="/static/js/app/workspace/conversation/emoji.js"></script>
    <script src="/static/js/app/workspace/conversation/list.js"></script>
    <link rel="stylesheet" href="/static/css/app/workspace/conversation/im.css">
    <link rel="stylesheet" href="/static/css/app/workspace/conversation/list.css">
</head>
<body>
    <div id="msgList1"></div>
</body>
<script>
    var H=window.innerHeight;$("#msgList1").css("height",H);
</script>
<!-- 实例化 -->
<script>
    (function(){
        //初始化appKey  和 token的值
        var appKey = "n19jmcy59f1q9";
        var token = "gRSklJrYyvnRyNw13QTLl6+YsUIoF3ojin3K277sfOnTraT0tjbHZFpr6Ae3DZ6g18GLR6pjRZnZiW6oTNV1xatdpZUyLdaH";
        //初始化融云
        RCS.init({
            appKey: appKey,  //传入appKey值
            token: token,    //传入token值
            target: document.getElementById('msgList1'),//实例化值当前HTML中
            showConversitionList: true,   //是否显示转换列表
            //模板构造
            // templates: {
            //     //构造一个btn按钮  （进入IM）同事绑定点击事件 RCS.showCommon()
            //     button: ['<div class="rongcloud-consult rongcloud-im-consult">',
            //         '   <button onclick="RCS.showCommon()"><span class="rongcloud-im-icon">进入 IM</span></button>',
            //         '</div>',
            //         //显示和隐藏最近联系人列表 追加在html中   .rcs-app类中
            //         '<div class="customer-service" style="display: none;"></div>'].join('')//"templates/button.html",
            // },
            extraInfo: {
                // 当前登陆用户信息
                userInfo: {
                    name: "游客",
                    grade: "VIP"
                },
                // 产品信息
                requestInfo: {
                    productId: "123",
                    referrer: "10001",
                    define: "" // 自定义信息
                }
            }
        });
    })()
</script>
<script>

</script>
</html>